home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 04 - 1988 / 04.06 Jun 88 / Basic Source / basic.r next >
Encoding:
Text File  |  1988-05-10  |  4.0 KB  |  361 lines  |  [TEXT/EDIT]

  1. *ZBasic.R
  2. *
  3.  
  4. Basic.RSRC
  5. ???????
  6.  
  7. Type ZBDK = STR 
  8.     ,0
  9. © Demo by Dave Kelly \0Dver 1 JUN 1988
  10.  
  11. Type FREF
  12. ,128
  13. APPL 0
  14.  
  15. Type BNDL
  16. ,128
  17. ZBDK 0
  18. ICN#
  19. 0 128
  20. FREF 
  21. 0 128
  22.  
  23. * ------ Multifinder events ---------
  24.  
  25. * bit 15 = switcher save screen
  26. * bit 14 = accept suspend resume events
  27. * bit 13 = switcher enable option switch
  28. * bit 12 = can do background on null events
  29. * bit 11 = multifinder aware 
  30. *         (activates & deactivates topmost 
  31. *           window at resume, suspend events)
  32.  
  33. Type SIZE = GNRL
  34.     ,-1
  35. .H
  36. 4000        ;; $4000 = bits 14 set
  37. .L
  38. 128000    ;; (for 150K recomended)
  39. .L
  40. 80000    ;; (for 80K minimum)
  41. .I
  42.  
  43. Type ALRT
  44.   ,1 (0)
  45. 80 80 205 400 
  46. 1
  47. 7765 
  48.  
  49. Type ALRT
  50.   ,2 (0)
  51. 80 55 205 425 
  52. 2
  53. 7765 
  54.  
  55. Type ALRT
  56.   ,3 (0)
  57. 80 55 205 425 
  58. 3
  59. 7765 
  60.  
  61. Type ALRT
  62.   ,4 (0)
  63. 80 55 205 425 
  64. 4
  65. 7765 
  66.  
  67. Type ALRT
  68.   ,5 (0)
  69. 30 250 82 502 
  70. 5
  71. 7765 
  72.  
  73. Type ALRT
  74.   ,129 (0)
  75. 80 80 200 400 
  76. 129
  77. 5555 
  78.  
  79. Type ALRT
  80.   ,130 (0)
  81. 80 80 200 400 
  82. 130
  83. 7765 
  84.  
  85. Type ALRT
  86.   ,150 (0)
  87. 80 55 200 425 
  88. 150
  89. 7765 
  90.  
  91. Type ALRT
  92.   ,152 (0)
  93. 80 80 200 400 
  94. 152
  95. 7765 
  96.  
  97. Type DITL
  98.   ,1 (0)
  99. 5
  100.  
  101. Button 
  102. 15 245 40 305 
  103. Ok
  104.  
  105. staticText Disabled
  106. 55 10 70 290 
  107.  ^0
  108.  
  109. staticText Disabled
  110. 72 10 87 290 
  111.  ^1
  112.  
  113. staticText Disabled
  114. 89 10 104 290 
  115.  ^2
  116.  
  117. staticText Disabled
  118. 106 10 121 290 
  119.  ^3
  120.  
  121. Type DITL
  122.   ,2 (0)
  123. 6
  124.  
  125. Button 
  126. 15 295 40 360 
  127. Ok
  128.  
  129. Button 
  130. 55 295 80 360 
  131. Cancel
  132.  
  133. staticText Disabled
  134. 55 10 70 290 
  135.  ^0
  136.  
  137. staticText Disabled
  138. 72 10 87 290 
  139.  ^1
  140.  
  141. staticText Disabled
  142. 89 10 104 290 
  143.  ^2
  144.  
  145. staticText Disabled
  146. 106 10 121 290 
  147.  ^3
  148.  
  149. Type DITL
  150.   ,3 (0)
  151. 6
  152.  
  153. Button 
  154. 15 295 40 360 
  155. Yes
  156.  
  157. Button 
  158. 55 295 80 360 
  159. No
  160.  
  161. staticText Disabled
  162. 55 10 70 290 
  163.  ^0
  164.  
  165. staticText Disabled
  166. 72 10 87 290 
  167.  ^1
  168.  
  169. staticText Disabled
  170. 89 10 104 290 
  171.  ^2
  172.  
  173. staticText Disabled
  174. 106 10 121 290 
  175.  ^3
  176.  
  177. Type DITL
  178.   ,4 (0)
  179. 6
  180.  
  181. Button 
  182. 55 295 80 360 
  183. Cancel
  184.  
  185. Button 
  186. 15 295 40 360 
  187. Ok
  188.  
  189. staticText Disabled
  190. 55 10 70 290 
  191.  ^0
  192.  
  193. staticText Disabled
  194. 72 10 87 290 
  195.  ^1
  196.  
  197. staticText Disabled
  198. 89 10 104 290 
  199.  ^2
  200.  
  201. staticText Disabled
  202. 106 10 121 290 
  203.  ^3
  204.  
  205. Type DITL
  206.   ,5 (0)
  207. 4
  208.  
  209. Button 
  210. 6 210 45 246 
  211. Ok
  212.  
  213. staticText Disabled
  214. 10 65 25 205 
  215. ^0
  216.  
  217. staticText Disabled
  218. 26 65 41 130 
  219. At Line #
  220.  
  221. staticText Disabled
  222. 26 130 41 205 
  223. ^1
  224.  
  225. Type DITL
  226.   ,129 (0)
  227. 3
  228.  
  229. Button 
  230. 15 245 40 305 
  231.  OK
  232.  
  233. staticText Disabled
  234. 48 10 64 300 
  235.  ^0
  236.  
  237. staticText Disabled
  238. 66 10 82 320 
  239.  ^1
  240.  
  241. Type DITL
  242.   ,130 (0)
  243. 2
  244.  
  245. Button 
  246. 15 245 40 305 
  247.  OK
  248.  
  249. staticText Disabled
  250. 48 10 64 300 
  251. Not Enough Memory!
  252.  
  253. Type DITL
  254.   ,150 (0)
  255. 5
  256.  
  257. Button 
  258. 55 295 80 360 
  259.  Stop
  260.  
  261. Button 
  262. 15 295 40 360 
  263.  Continue
  264.  
  265. staticText Disabled
  266. 48 10 62 290 
  267.  ^0
  268.  
  269. staticText Disabled
  270. 66 10 80 290 
  271.  ^1
  272.  
  273. staticText Disabled
  274. 84 10 98 290 
  275.  ^2
  276.  
  277. Type DITL
  278.   ,152 (0)
  279. 3
  280.  
  281. Button 
  282. 15 245 40 305 
  283.  Ok
  284.  
  285. staticText Disabled
  286. 48 10 62 300 
  287. The Printer Driver Could not be Opened.
  288.  
  289. staticText Disabled
  290. 66 10 80 300 
  291. You will not be able to print anything.
  292.  
  293. * Menus
  294. *   ,ID (attributes)
  295. *   menu title (an Apple symbol is \ 14 in hex)
  296. *   menu items, ( means it's initially disabled.
  297. *   (-  means a disabled line of dashes.
  298. *   A trailing /Q, etc. means a command-key.
  299. Type MENU
  300.   ,135 (0)
  301. Format
  302.     Style /\1B!\88
  303.     Font /\1B!\89
  304.  
  305. Type MENU
  306.   ,134 (0)
  307.     File
  308.     Quit
  309.  
  310. Type MENU
  311.   ,136 (0)
  312. Styles
  313.     Bold/B
  314.     Italic /I
  315.     Underline /U
  316.     Outline /O
  317.     Shadow /S
  318.  
  319. Type MENU
  320.   ,137 (0)
  321. Fonts
  322.  
  323.  
  324.  
  325. * A Window template
  326. *   ,ID (attributes)
  327. *   title
  328. *   boundsrect (global Top, Left, Bottom, Right)
  329. *   (In)Visible  (No)GoAway
  330. *   procid: window definition ID
  331. *   refcon, for program's use.
  332. Type WIND
  333.   ,29414 (0)
  334. Hierarchical Menu Sample
  335. 54 78 280 325 
  336. Visible NoGoAway
  337. 16 
  338.  
  339. Type ICN# = GNRL
  340.   ,128 (0)
  341. .H
  342. 0001 0000 0002 8000 0004 4000 0009 A000 
  343. 0013 1000 0026 0800 004C 0400 0098 0200 
  344. 0133 0100 0267 8080 04CE 4040 09A9 C020
  345. 1310 8010 26B8 0008 4C64 3F04 8822 4082
  346. 4015 8041 200B 3022 1005 C814 081E 7F8F
  347. 0402 3005 0201 0007 0100 8005 0080 6007
  348. 0040 1FE5 0020 021F 0010 0407 0008 0800
  349. 0004 1000 0002 2000 0001 4000 0000 8000
  350. *
  351. 0001 0000 0003 8000 0007 C000 000F E000
  352. 001F F000 003F F800 007F FC00 00FF FE00
  353. 01FF FF00 03FF FF80 07FF FFC0 0FFF FFE0
  354. 1FFF FFF0 3FFF FFF8 7FFF FFFC FFFF FFFE
  355. 7FFF FFFF 3FFF FFFE 1FFF FFFC 0FFF FFFF
  356. 07FF FFFF 03FF FFFF 01FF FFFF 00FF FFFF
  357. 007F FFFF 003F FE1F 001F FC07 000F F800
  358. 0007 F000 0003 E000 0001 C000 0000 8000
  359.  
  360.